import 'package:fish_redux/fish_redux.dart';

enum ForgetPwdAction { getValidateCode, forgetPwd }

class ForgetPwdActionCreator {
  // 获取验证码
  static Action getValidateCode({
    String phone,
  }) {
    return Action(ForgetPwdAction.getValidateCode, payload: <String, dynamic>{
      "phone": phone,
    });
  }

  /// 忘记密码
  static Action forgetPwd({
    String phone,
    String validateCode,
    String password,
  }) {
    return Action(ForgetPwdAction.forgetPwd, payload: <String, dynamic>{
      "phone": phone,
      "validateCode": validateCode,
      "password": password
    });
  }
}
